﻿using System;
using System.Runtime.InteropServices;
using System.Web.UI;
using System.Web.UI.WebControls.WebParts;
using Eneta.Portal.Common;

namespace Eneta.Portal.Companies.WebParts
{
    [Guid("d87a9650-322b-4adc-96c6-b14a7852a40e")]
    public class IOResults : WebPart
    {
        protected override void CreateChildControls()
        {
            base.CreateChildControls();

            try
            {
                var control = Page.LoadControl("~/_controltemplates/IOResultsControl.ascx");
                Controls.Add(control);
            }
            catch(Exception ex)
            {
                Logger.LogWarning("Error in IOResults WebPart", "");
                Logger.LogException(ex);
            }
        }

        public override void RenderBeginTag(HtmlTextWriter writer)
        {
            return;
        }

        public override void RenderEndTag(HtmlTextWriter writer)
        {
            return;
        }
    }
}
